export const request1=(parmas)=>{
  wx.showLoading({
    title: '加载中',
    mask:true
  })
  return new Promise((resolve,reject)=>{
    wx.request({
      ...parmas,
      success:(res)=>{
        resolve(res)
      },
      fail:(res)=>{
        resject(res)  
      },
      complete:()=>{
        wx.hideLoading({
          success: (res) => {},
        })
      }
    })
  })
}